<template>
	<view>
		<textarea v-model="page" placeholder-style="color:#F76260" placeholder="url"/>
		<u-button @click="http">GO</u-button>
		<u-button @click="goto">GOTO</u-button>
		<view class="border w-100">
			{{data1}}
		</view>
		<bg-bar></bg-bar>
	</view>
</template>

<script>
	import request from '@/utils/request'
	import{borrowProject} from "@/api/salary.js"
	export default {
		data() {
			return {
				page:"",
				data1:''
			}
		},
		mounted() {
			borrowProject().then(res=>{
				console.log(res)
			})
		},
		methods: {
			http(){
				request({
						'url': this.page,
						'method': 'get',
					}).then(res=>{
						this.data1 = res.data
					})
			},
			goto(){
				uni.navigateTo({
					url:this.page||"/pages/salary/retire/detail-native/detail-native?id=13"
				})
			}
		}
	}
</script>

<style>

</style>
